﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CrmApplication.Models;

namespace CrmApplication.Controllers
{
    public class NomController : Controller
    {
        //
        // GET: /Nom/

        public ActionResult Index()
        {
            return View();
        }

		//select all records from the given table
        public ActionResult GetNom()
        {
            string table = Request.Params["table_name"];
            NomContainer container = NomModels.GetNomArray(table);
            return Json(container, JsonRequestBehavior.AllowGet);
        }
    }
}
